﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Job.aspx.cs" Inherits="XHCTMS.VIEW.Job" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="shortcut icon" href="/favicon.ico">
	<link rel="apple-touch-icon" href="/apple-touch-icon.png">
	<link rel="stylesheet" href="css/style.css?v=2">
	
	<!-- fluid 960 -->
	<link rel="stylesheet" type="text/css" href="css/text.css" media="screen" />
	<link rel="stylesheet" type="text/css" href="css/layout.css" media="screen" />
	<link rel="stylesheet" type="text/css" href="css/grid.css" media="screen" />
	<!-- superfish menu -->
	<link rel="stylesheet" type="text/css" href="css/superfish.css" media="screen" />
	<!-- tags css -->
	<link rel="stylesheet" href="css/jquery.tagsinput.css">
	<!-- treeview css -->
	<link rel="stylesheet" href="css/jquery.treeview.css">
	<!-- dataTable css -->
	<link rel="stylesheet" href="css/demo_table_jui.css">


	<!-- fluid GS -->
	<link rel="stylesheet" type="text/css" href="css/fluid.gs.css" media="screen" />
	<!--[if lt IE 8 ]>
	<link rel="stylesheet" type="text/css" href="css/fluid.gs.lt_ie8.css" media="screen" />
	<![endif]-->

	<!-- //jqueryUI css -->
	<link type="text/css" href="css/custom-theme/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
	
	<!-- //jquery -->
	<!-- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> -->
	<script src="js/libs/jquery-1.5.1.min.js"></script>
	<script>	    !window.jQuery && document.write(unescape('%3Cscript src="js/libs/jquery-1.5.1.min.js"%3E%3C/script%3E'))</script>
	<!-- //jqueryUI -->
	<script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script>
	<script type="text/javascript" src="js/jquery-fluid16.js"></script>
	<script src="js/plugins.js"></script>
	<script src="js/script.js"></script>
	
	<!-- //xoxco tags plugin https://github.com/xoxco/jQuery-Tags-Input -->
	<script src="js/jquery.tagsinput.min.js"></script>
	<link rel="stylesheet" href="css/jquery.tagsinput.css">
	
	<!--[if lt IE 7 ]>
	<script src="js/libs/dd_belatedpng.js"></script>
	<script> DD_belatedPNG.fix('img, .png_bg');</script>
	<![endif]-->
	<!-- modernizr -->
	<script src="js/libs/modernizr-1.7.min.js"></script>
    <script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <link href="js/manhuaTip.1.0.css" rel="stylesheet" type="text/css" />
    <script src="js/manhuaTip.1.0.js" type="text/javascript"></script>
	<!-- superfish menu and needed js for menu --> 
	<script src="js/superfish.js"></script>
	<script src="js/supersubs.js"></script>
	<script src="js/hoverIntent.js"></script>

	<!-- treeview -->
	<script src="js/jquery.treeview.js"></script>
	
	<!-- dataTable -->
	<script src="js/jquery.dataTables.min.js"></script>

    <style type="text/css">
    .txt
    {
        margin-left:10px;
        width: 150px;
        margin-right:20px;
        margin-top:5px;
        }
        .dialog_link {
    padding: 0.4em 1em 0.4em 20px;
    position: relative;
    text-decoration: none;
}
.checkbox
{
    margin-left:10px;
        width: 150px;
        height:23px;
        margin-right:20px;
        margin-top:5px;
    }
 .dropdownlist
    {
        margin-left:10px;
        width: 155px;
        height:23px;
        margin-right:20px;
        margin-top:5px;
        }
    
 .span-ui-icon {
    left: 0.2em;
    margin: -8px 5px 0 0;
    position: absolute;
    top: 50%;
}
    </style>
	
        <script type="text/javascript" language="javascript">
            $(function () {
                $("#divAdd").click(function () {
                    $("#btnAdd").trigger("click");
                });

                $("#divSeach").click(function () {
                    $("#btnSeach").trigger("click");
                });
                $("#divUpdate").click(function () {
                    $("#btnUpdate").trigger("click");
                });

                $("#dialogRevise").dialog({
                    autoOpen: false, width: 530, modal: true,
                    buttons: {
                        "确定": function () {
                            $("#btnAlter").trigger("click");
                        },
                        "取消": function () {
                            $(this).dialog("close");
                        }
                    }
                });
                $("#dialogError").dialog({
                    autoOpen: false, width: 530, modal: true,
                    buttons: {
                        "确定": function () {
                            $(this).dialog("close");
                        },
                        "取消": function () {
                            $(this).dialog("close");
                        }
                    }
                });

                $("#divAlter").click(function () {
                    if ($('#txtName').val() == "" || $('txtDesc').val() == "") {
                        $("#dialogError").dialog("open");
                    }

                });
            });
            
            $(function () {
                $(".manhuaTip").manhuaTip({
                    Event: "click", //可选				       
                    timeOut: 10000//停留时间
                });
            });
           
    </script>

</head>
<body>
  <form runat="server">

    <div class="box" runat="server">
						<h2>
							<a href="#" id="toggle-forms">职位信息管理</a>
						</h2> 
						<div class="block" id="forms">
							
								<fieldset>
									<legend>职位操作区</legend>
                                    <div>
                                    <label id="lblStuName">名称</label>
                                     <input id="txtName" type="text" class="txt" runat="server" maxlength="12" />
                                     

                                       <label id="lblFlag">状态</label>
                                        <asp:RadioButton ID="rbtnSure" runat="server" Width="20px" GroupName="radio" />存在
                                        <asp:RadioButton ID="rbtnNo" runat="server" Width="20px" GroupName="radio" />不存在

                                          <br />
                                     <br />

                                      <label id="lblDescription">描述</label>
                                     <input id="txtDesc" type="text" class="txt" runat="server" maxlength="120" />

                                     <br />
                                     <br />
                                     	    <div id="divAdd" class="six column">
									      
									      	<a href="#" id="dialog_link1" class=" dialog_link ui-state-default ui-corner-some floatRight">
                                            <span class=" span-ui-icon ui-icon ui-icon-circle-plus "></span>增加</a>
									     
									    </div>
                                     
                                           <div id="divSeach" class="six column">
									      
									      	<a href="#" id="A2" class=" dialog_link ui-state-default ui-corner-some floatRight">
                                            <span class=" span-ui-icon ui-icon ui-icon-search "></span>查询</a>
									     
									    </div>
                                           <div id="divAlter" class="six column">
									      
									      	<a href="#" id="A4" class=" dialog_link ui-state-default ui-corner-some floatRight">
                                            <span class=" span-ui-icon ui-icon ui-icon-arrowrefresh-1-e "></span>修改</a>
									     
									    </div>
                                        <div id="divUpdate" class="six column">
									      
									      	<a href="#" id="A3" class=" dialog_link ui-state-default ui-corner-some floatRight">
                                            <span class=" span-ui-icon ui-icon ui-icon-check "></span>更新</a>
									     
									    </div>
                                            <%--  <div id="divDelete" class="six column">
									      
									      	<a href="#" id="A1" class=" dialog_link ui-state-default ui-corner-some floatRight">
                                            <span class=" span-ui-icon ui-icon ui-icon-trash "></span>删除</a>
									     
									    </div>--%>
                                      </div>                                        
									</fieldset>
							
						</div>
					</div>

   <asp:Button ID="btnAdd" runat="server"  style="display:none"  Text="Add" onclick="btnAdd_Click" class="manhuaTip" ty="succ" msg="增加成功!" />

     
  
   <asp:Button ID="btnSeach" runat="server"  style="display:none"  Text="Seach" onclick="btnSeach_Click" />
 
       

   <asp:Button ID="btnAlter" runat="server" UseSubmitBehavior="false"  style="display:none"  Text="Alter" onclick="btnAlter_Click"  />

      

     <asp:Button ID="btnUpdate" runat="server" style="display:none"   Text="Update" onclick="btnUpdate_Click"  />

     

     <asp:Button ID="btnDelete" runat="server"  style="display:none"  Text="Delete" onclick="btnDelete_Click" />

       
    
     <div id="UpdateEvent" style="display:none">
                <h5>qing shu ru </h5>
             </div>

    <div class="box">
						<h2>
							<a href="#" id="toggle-list">职位信息列表</a>
						</h2>
						<div class="block" id="list">	
                        <asp:Repeater ID="Jobinfo" runat="server" OnItemCommand="jobinfo_itemCommand">
                <HeaderTemplate>
                    <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
                        <thead>
                            <tr>
                                <th>
                                    流水号
                                </th>
                                <th>
                                    名称
                                </th>
                                <th>
                                    描述
                                </th>
                                 <th>
                                    状态
                                </th>
                               <th>
                                   
                                </th>
                            </tr>
                        </thead>
                </HeaderTemplate>
                <ItemTemplate>
                    <tbody>
                        <tr class="odd gradeA">
                            <td>
                                <%#Eval("job_Id")%>
                            </td>
                            <td>
                                <%#Eval("job_name")%>
                            </td>
                            <td>
                                <%#Eval("job_desc")%>
                            </td>
                            <td>
                                <%#Eval("job_flag")%>
                            </td>
                                <td style="text-align:center">

                                <asp:LinkButton ID="lbtnAlter" Text="修改" CommandName="linkbtnAlter" CommandArgument='<%#Eval("job_Id") %>' runat="server"></asp:LinkButton>
                                <asp:LinkButton ID="lbtnDelete" Text="删除" CommandName="linkbtnDelete" CommandArgument='<%#Eval("job_Id") %>' runat="server"></asp:LinkButton>
                            </td>
                        </tr>
                    </tbody>
                </ItemTemplate>
                <FooterTemplate>
                    <tfoot>
                        <tr>
                            <th>
                                    流水号
                                </th>
                                <th>
                                    名称
                                </th>
                                <th>
                                    描述
                                </th>
                                 <th>
                                    状态
                                </th>
                                 <th>
                                   
                                </th>
                        </tr>
                    </tfoot>
                    </table>
                </FooterTemplate>
                </asp:Repeater>
           
</div>
<div id="dialogRevise" style="display:none" title="职位管理">
            确定修改？
 </div>
 <div id="dialogError" style="display:none; " title="职位管理">
            <span style="color:Red">请输入完整信息</span>
        </div>

					</div>
                    
  </form>
</body>
</html>
